<div class="slide-nav" ng-include src="'views/page/page.property.edit.html'"></div>
 <aside id="sidebar" class="page-sidebar hidden-md hidden-sm hidden-xs" ng-init="slidebarInit()" ng-controller="SidebarCtrl" style="padding-top:0px;">
        <!-- Start .sidebar-inner -->
        <div class="sidebar-inner">
            <!-- Start .sidebar-scrollarea -->
            <div class="sidebar-scrollarea">
                <!--  .sidebar-panel -->
                <div class="sidebar-panel">
                    <h5 class="sidebar-panel-title">用户信息</h5>
                </div>
                <!-- / .sidebar-panel -->
                <div class="user-info clearfix">
                    <img src="" alt="avatar">
                    <span class="name">name:{{profile.userName}}</span>

                    <div class="btn-group">
                        <button type="button" class="btn btn-default btn-xs"><i class="l-basic-gear"></i>
                        </button>
                        <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
                            设置 <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu right" role="menu">
                            <li ng-click="changePassword()"><a href="javavscript:void(0)"><i class="fa fa-edit"></i>修改密码</a></li>
                        <li ng-click="logout()"><a href="javascript:void(0)"><i class="fa fa-power-off"></i>登出</a>
                            </li>
                        </ul>
                    </div>
                </div>
                <!--  .sidebar-panel -->
                <div class="sidebar-panel">
                    <h5 class="sidebar-panel-title">功能列表</h5>
                </div>
                <!-- / .sidebar-panel -->
                <!-- .side-nav -->
                <div class="side-nav">
                    <ul class="nav">
                        <!-- <li><a href="index.html"><i class="l-basic-laptop"></i><span class="txt">Dashboard</span></a>
                        </li>
                        <li><a href="http://themes.suggelab.com/#dynamic_frontend" target="_blank"><i
                                class="l-basic-webpage"></i><span class="txt">Frontend</span><span
                                class="label">hot</span></a>
                        </li> -->
                        <li>
                            <a href="#"><i class="l-basic-case"></i> <span class="txt">工具箱</span></a>
                            <ul class="sub">
                                <li><a ng-click="uploadfile()" href="javascript:"><span class="txt">图片上传</span></a>
                                </li>
                                <li><a ng-click="toolsMap()" href="javascript:"><span class="txt">切图工具</span></a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a href="#"><i class="l-software-pages"></i><span class="txt">PC管理</span></a>
                            <ul class="sub">
                                <li ng-repeat="page in specialPages|filter:{type: 0}" href="javascript:">
                                    <a href="#/page/edit/{{page.pageId}}"><span class="txt">{{page.name}}</span></a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a href="#"><i class="l-basic-smartphone"></i><span class="txt">H5管理</span></a>
                            <ul class="sub">
                                <li ng-repeat="page in specialPages|filter:{type: 1}" href="javascript:">
                                    <a href="#/page/edit/{{page.pageId}}"><span class="txt">{{page.name}}</span></a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a href="#"><i class="l-software-layers2"></i><span class="txt">专题管理</span></a>
                            <ul class="sub">
                                <li><a href="javascript:" ng-click="relateNewPage()"><span class="txt">创建页面并使用</span></a>
                                </li>
                                <li><a href="#/activitypage/manager"><span class="txt">所有专题</span></a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a href="#"><i class="l-basic-webpage"></i> <span class="txt">页面管理</span></a>
                            <ul class="sub">
                                <li><a href="javascript:" ng-click="pageAdd()"><span class="txt">新增页面</span></a>
                                </li>
                                <li><a href="#/page/manager"><span class="txt">所有页面</span></a>
                                </li>
                            </ul>
                        </li>
                        <li>
                          <a href="#/resource/manager"> <i class="fa fa-edit"></i><span class="txt">版本升级</span></a>
                        </li>
                        <li>
                            <a href="#/module/manager"><i class="l-basic-geolocalize-01"></i><span class="txt">模块管理</span></a>
                        </li>
                    </ul>
                </div>

            </div>
            <!-- End .sidebar-scrollarea -->
        </div>
        <!-- End .sidebar-inner -->
 </aside>
<script type="text/ng-template" id="util.fileupload.html">
<input type="file" style="display:none;" id="fileuploader"/>
<form class="form-horizontal" name="myForm">
<div class="modal-header">
  <h3 class="modal-title">文件上传</h3>
</div>
<div class="modal-body">
  <div class="form-group">
    <label class="col-sm-2 control-label">文件地址</label>
    <div class="col-sm-10">
      <div class="col-sm-10 input-group">
        <input type="text" class="form-control" value="{{uploadfile.fileName}}" ng-if="!uploadfile.isCompleted">
        <input type="text" class="form-control" value="{{uploadfile.fileName}}" ng-if="uploadfile.isCompleted" autofocus onfocus="this.select()">
        <span class="input-group-btn">
          <button class="btn btn-default" type="button" ng-click="changeFile(uploadfile)" tabindex="0">
          <i class="glyphicon glyphicon-folder-open"></i>
          </button>
          <button class="btn btn-success" type="button" tabindex="0" ng-if="uploadfile.isCompleted">
          <i class="glyphicon glyphicon-ok"></i>
          </button>
        </span>
      </div>
    </div>
  </div>
  <div class="modal-footer">
    <button class="btn btn-default" ng-click="cancel()">取消</button>
  </div>
</form>
</script>
<script type="text/ng-template" id="tools.map.html">
  <div ng-if="!uploadfile.isCompleted">
    <input type="file" style="display:none;" id="fileuploader"/>
    <form class="form-horizontal" name="myForm">
      <div class="modal-header">
        <h3 class="modal-title">文件上传</h3>
      </div>
      <div class="modal-body">
        <div class="form-group">
          <label class="col-sm-2 control-label">文件地址</label>
          <div class="col-sm-10">
            <div class="col-sm-10 input-group">
              <input type="text" class="form-control" value="{{uploadfile.fileName}}" ng-if="!uploadfile.isCompleted">
              <input type="text" class="form-control" value="{{uploadfile.fileName}}" ng-if="uploadfile.isCompleted" autofocus onfocus="this.select()">
          <span class="input-group-btn">
            <button class="btn btn-default" type="button" ng-click="changeFile(uploadfile)" tabindex="0">
              <i class="glyphicon glyphicon-folder-open"></i>
            </button>
            <button class="btn btn-success" type="button" tabindex="0" ng-if="uploadfile.isCompleted">
              <i class="glyphicon glyphicon-ok"></i>
            </button>
          </span>
            </div>
          </div>
        </div>
      </div>
    </form>
  </div>
  <div ng-if="uploadfile.isCompleted">
    <style>
      .modal-dialog {
        width: 1200px;
      }
    </style>
    <iframe src="vendor/summer/index.htm" frameborder="0" width="100%" height="{{iframeHeight}}"></iframe>
    <div class="modal-footer">
      <button class="btn btn-default" ng-click="cancel()">取消</button>
    </div>
  </div>
</script>
<script type="text/ng-template" id="user.changepassword.html">
  <div>
    <form class="form-horizontal" name="myForm">
      <div class="modal-header">
        <h3 class="modal-title">修改密码</h3>
      </div>
      <div class="modal-body">
        <div class="form-group">
          <label class="col-sm-2 control-label">登录帐号</label>
          <div class="col-sm-10">
              <input type="text" class="form-control" value={{accountId}} readonly="true">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">旧密码</label>
          <div class="col-sm-10">
              <input type="password" class="form-control" ng-model="oldPassword">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">新密码</label>
          <div class="col-sm-10">
              <input type="password" class="form-control" ng-model="newPassword">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">确认密码</label>
          <div class="col-sm-10">
              <input type="password" class="form-control" ng-model="confirmPassword">
          </div>
        </div>
      </div>  
    </form>
  </div>
  <div class="modal-footer">
            <button class="btn btn-success" ng-click="changePassword()" type="submit">修改</button>
            <button class="btn btn-default" ng-click="cancel()">取消</button>
   </div>
</script>

